package org.jcodetools.fs.entity;

import org.jcodetools.fs.var.enums.Type;

/**
 * Created by 熊彦 on 2017-06-17.
 *
 * @email javadevyan@163.com
 */
public class FileItem {
    //要上传的资源类型。包括文件、图片、视频
    private Type type;
    //是否上传为临时文件，默认为false。true：表示为临时目录，false：表示为正式目录。临时目录在上传正式文件后自动删除。
    private boolean isTemp = false;

    public Type getType() {
        return type;
    }

    public FileItem setType(Type type) {
        this.type = type;
        return this;
    }

    public boolean isTemp() {
        return isTemp;
    }

    public FileItem setTemp(boolean temp) {
        isTemp = temp;
        return this;
    }
}
